<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:constants="http://www.tuanzi.com/constants/tags">
    <div class="ui-g">
        <div class="ui-g-12">
            <p:dataTable
                    emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                    reflow="true"
                    resizableColumns="true"
                    var="record"
                    value="#{userTagInfoBean.$.userUnionView.records}">

                <p:column headerText="合作方">
                    <h:outputText value="#{userTagInfoBean.translateProductInfoName(record.sourceId)}"/>
                </p:column>
                <p:column headerText="手机号">
                    <h:outputText value="#{userTagInfoBean.desensitize(record.mobnum)}"/>
                </p:column>
                <p:column headerText="登录时间">
                    <h:outputText value="#{record.ctime}">
                        <f:convertDateTime pattern="#{constants:get('DATETIME_FORMAT')}"/>
                    </h:outputText>
                </p:column>
                <p:column headerText="请求结果">
                    <h:outputText value="#{userTagInfoBean.translate(DictionaryCode.UNION_RESULT,record.result)}"/>
                </p:column>
                <p:column headerText="首次联登">
                    <h:outputText
                            value="#{userTagInfoBean.translate(DictionaryCode.FIRST_UNION_RESULT,record.firstUnion)}"/>
                </p:column>
                <p:column headerText="平台">
                    <h:outputText value="#{record.platform}"/>
                </p:column>
                <p:column headerText="产品">
                    <h:outputText value="#{userTagInfoBean.translateProduct(record.productId)}"/>
                </p:column>
                <p:column headerText="渠道">
                    <h:outputText value="#{userTagInfoBean.translateProductChannel(record.channel)}"/>
                </p:column>
            </p:dataTable>
        </div>
    </div>
</ui:composition>